﻿#ifndef INSTRUCTIONWAIT_H
#define INSTRUCTIONWAIT_H

#include "ScriptInstruction.h"

class InstructionWait :public ScriptInstruction
{
  Q_OBJECT
private://property
  int interval = 0;
private:
  static const int byteArraySize=sizeof (interval);//除去指令类型标识符后的数据大小
public:
  explicit InstructionWait();
  InstructionWait(InstructionWait const & instructionWait);
  InstructionWait& operator=(InstructionWait const& instructionWait);
  virtual ~InstructionWait();
public:
  virtual QString toString()override;
  virtual QByteArray toByteArray()override;
  virtual InstructionWait* clone()override;
public:
  static ScriptInstruction* fromByteArray1(char * const src,int size,int * offset);
public://geter and seter
  int getInterval();
  InstructionWait* setInterval(int interval);
};
#endif
